package com.elephant.core.socket.socketforxml;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

/**
 * <MESSAGE NAME="EVENT" NO="6" TYPE="RSP">
 *   <CONTENT>NULL</CONTENT>
 *   <EventNo>3</EventNo>
 *   <StuNo>001003</StuNo>
 *   <EventName>学生吃饭了</EventName>
 *   <MobilePhone>1383838438</MobilePhone>
 * </MESSAGE>
 * @author hai
 * @description
 * @date 15:25 2018/8/31
 */
@XStreamAlias("MESSAGE")
public class MessageBean {

    @XStreamAlias("NAME")
    @XStreamAsAttribute
    private String name;
    @XStreamAlias("NO")
    @XStreamAsAttribute
    private String no;
    @XStreamAlias("TYPE")
    @XStreamAsAttribute
    private String type;


    @XStreamAlias("Content")
    private String content;
    @XStreamAlias("EventNo")
    private String eventNo;
    @XStreamAlias("StuNo")
    private String stuNo;
    @XStreamAlias("EventName")
    private String eventName;
    @XStreamAlias("MobilePhone")
    private String mobilePhone;

     public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getEventNo() {
        return eventNo;
    }

    public void setEventNo(String eventNo) {
        this.eventNo = eventNo;
    }

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    @Override
    public String toString() {
        return "MessageBean{" +
                "name='" + name + '\'' +
                ", no='" + no + '\'' +
                ", type='" + type + '\'' +
                ", content='" + content + '\'' +
                ", eventNo='" + eventNo + '\'' +
                ", stuNo='" + stuNo + '\'' +
                ", eventName='" + eventName + '\'' +
                ", mobilePhone='" + mobilePhone + '\'' +
                '}';
    }
}
